#ifndef ALERTWINDOW_H
#define ALERTWINDOW_H

#include <QWidget>

namespace Ui {
    class AlertWindow;
}

class AlertWindow : public QWidget {
    Q_OBJECT
public:
    AlertWindow(QWidget *parent, QString message, int time);
    ~AlertWindow();

protected:
    void changeEvent(QEvent *e);

signals:
    void timeup();
private slots:
    void timeout();
    void timeout2();
private:

    Ui::AlertWindow *ui;

    int time_;
};

#endif // ALERTWINDOW_H
